package com.yang.leather.admin.pojo;

import java.util.HashMap;
import java.util.Map;

public enum Language {
	ZH("zh","简体中文"),
	EN("en","english")
	;
	
	private static final Map<String,String> languageMap = new HashMap<String,String>();
	static{
		for(Language l : Language.values()){
			languageMap.put(l.getCode(), l.getDesc());
		}
	}
	
	private String code;
	private String desc;
	
	private Language(String code,String desc){
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public static Map<String,String> getLanguage(){
		return languageMap;
	}
}
